package org.hospital.entity;
// default package

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * Project entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="project"
    ,catalog="hospital"
)

public class Project  implements java.io.Serializable {


    // Fields    

     private Integer projectId;
     private Integer creatorId;
     private String category;
     private String name;
     private Double unitPrice;
     private Double doctorCost;
     private Double clinicCost;
     private Double excutorCost;
     private Integer type;
     private Integer status;
     private Timestamp alterTime;
     private Timestamp createTime;


    // Constructors

    /** default constructor */
    public Project() {
    }

    
    /** full constructor */
    public Project(Integer creatorId, String category, String name, Double unitPrice, Double doctorCost, Double clinicCost, Double excutorCost, Integer type, Integer status, Timestamp alterTime, Timestamp createTime) {
        this.creatorId = creatorId;
        this.category = category;
        this.name = name;
        this.unitPrice = unitPrice;
        this.doctorCost = doctorCost;
        this.clinicCost = clinicCost;
        this.excutorCost = excutorCost;
        this.type = type;
        this.status = status;
        this.alterTime = alterTime;
        this.createTime = createTime;
    }

   
    // Property accessors
    @Id @GeneratedValue
    
    @Column(name="projectId", unique=true, nullable=false)

    public Integer getProjectId() {
        return this.projectId;
    }
    
    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }
    
    @Column(name="creatorId", nullable=false)

    public Integer getCreatorId() {
        return this.creatorId;
    }
    
    public void setCreatorId(Integer creatorId) {
        this.creatorId = creatorId;
    }
    
    @Column(name="category", nullable=false, length=50)

    public String getCategory() {
        return this.category;
    }
    
    public void setCategory(String category) {
        this.category = category;
    }
    
    @Column(name="name", nullable=false, length=50)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="unitPrice", nullable=false, precision=22, scale=0)

    public Double getUnitPrice() {
        return this.unitPrice;
    }
    
    public void setUnitPrice(Double unitPrice) {
        this.unitPrice = unitPrice;
    }
    
    @Column(name="doctorCost", nullable=false, precision=22, scale=0)

    public Double getDoctorCost() {
        return this.doctorCost;
    }
    
    public void setDoctorCost(Double doctorCost) {
        this.doctorCost = doctorCost;
    }
    
    @Column(name="clinicCost", nullable=false, precision=22, scale=0)

    public Double getClinicCost() {
        return this.clinicCost;
    }
    
    public void setClinicCost(Double clinicCost) {
        this.clinicCost = clinicCost;
    }
    
    @Column(name="excutorCost", nullable=false, precision=22, scale=0)

    public Double getExcutorCost() {
        return this.excutorCost;
    }
    
    public void setExcutorCost(Double excutorCost) {
        this.excutorCost = excutorCost;
    }
    
    @Column(name="type", nullable=false)

    public Integer getType() {
        return this.type;
    }
    
    public void setType(Integer type) {
        this.type = type;
    }
    
    @Column(name="status", nullable=false)

    public Integer getStatus() {
        return this.status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    @Column(name="alterTime", nullable=false, length=19)

    public Timestamp getAlterTime() {
        return this.alterTime;
    }
    
    public void setAlterTime(Timestamp alterTime) {
        this.alterTime = alterTime;
    }
    
    @Column(name="createTime", nullable=false, length=19)

    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
   








}